export default function useConfig() {
  const tableColumns = buildColumns([
    {
      title: '域名',
      dataIndex: 'name',
      format: 'copy',
    },
    {
      title: '所属应用',
      dataIndex: 'app_id',
      slotName: 'appId',
    },
    {
      title: '域名账号',
      dataIndex: 'account_name',
      slotName: 'accountName',
    },
    {
      title: '备注',
      dataIndex: 'remark',
      slotName: 'remark',
    },
    {
      title: '创建时间 ',
      dataIndex: 'created_at',
      format: 'date-time',
      sortable: sortableSettings,
    },
    {
      title: '操作',
      fixed: 'right',
      slotName: 'actions',
      width: 80,
      cellClass: 'actions-cell',
    },
  ])

  return {
    tableColumns,
  }
}
